package o;

import com.huawei.appmarket.service.appdetail.bean.detail.DetailScreenBean;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;
import java.util.regex.Pattern;

public abstract class eyk {
    public static boolean ˊ(String str) {
        return str != null && str.startsWith(DetailScreenBean.IMG_TAG_HORIZENTAL);
    }

    public static int ॱ() {
        try {
            return ContentManager.getInstant().getContext().getPackageManager().getPackageInfo(ContentManager.getInstant().getContext().getPackageName(), DnsConfig.MAX_CACHE_ENTRIES).versionCode;
        } catch (Throwable e) {
            Logger.ˋ("Utils", "getVersionCode error.", e);
            return 0;
        }
    }

    public static String ˊ() {
        try {
            return ContentManager.getInstant().getContext().getPackageManager().getPackageInfo(ContentManager.getInstant().getContext().getPackageName(), DnsConfig.MAX_CACHE_ENTRIES).versionName;
        } catch (Throwable e) {
            Logger.ˋ("Utils", "getVersionCode error.", e);
            return "";
        }
    }

    public static String ˎ(String str) {
        String str2 = "";
        if (!dof.ॱ(str) && Pattern.compile("^[0-9]{5,15}$").matcher(str).matches()) {
            return str.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
        }
        return str2;
    }
}
